<?php defined('SYSPATH') or die('No direct script access.');
/**
 * @author thanh.dang
 */
//Set new Route for display list category

Route::set('category-tree','admin/category/tree(/<path>)',array(
	'path' => '[0-9a-zA-Z//-]+'
))->defaults(array(
	'directory' => 'admin',
	'controller' => 'category',
	'action' => 'index'
));

Route::set('category-crud','admin/category/<action>(/<slug>)',array(
	'slug' => '[0-9a-zA-Z-]+',
	'action' => '(edit|delete)'
))->defaults(array(
	'directory' => 'admin',
	'controller' => 'category',
));

Route::set('menu-list','admin/menu(/<id>)',array(
	'id' => '[0-9]+'
))->defaults(array(
	'directory' => 'admin',
	'controller' => 'menu',
	'action' => 'index',
	'id' => null
));

Route::set('menu','admin/menu(/<action>(/<id>))',array(
	'id' => '[0-9]+'
))->defaults(array(
	'directory' => 'admin',
	'controller' => 'menu',
	'action' => 'index',
	'id' => null
));